/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package DataModel;

import java.net.SocketTimeoutException;

/**
 *
 * @author Tomasz Nowak
 */
public class NotaryPolicy implements INotaryPolicy
{
	private int notariesToCheck;
	private int quorum;
	private int notariesToSecondCheck;
	private int socketTimeout;
	private int operationTimeout;

	@Override
	public int getNotariesToSecondCheck()
	{
		return notariesToSecondCheck;
	}

	@Override
	public void setNotariesToSecondCheck( int notariesToSecondCheck )
	{
		this.notariesToSecondCheck = notariesToSecondCheck;
	}

	public NotaryPolicy( int notariesToCheck, int quorum, int notariesToSecondCheck )
	{
		this.notariesToCheck = notariesToCheck;
		this.quorum = quorum;
		this.notariesToSecondCheck = notariesToSecondCheck;
	}

	@Override
	public int getNotariesToCheck()
	{
		return notariesToCheck;
	}

	@Override
	public void setNotariesToCheck( int notariesToCheck )
	{
		this.notariesToCheck = notariesToCheck;
	}

	@Override
	public int getQuorum()
	{
		return quorum;
	}

	@Override
	public void setQuorum( int quorum )
	{
		this.quorum = quorum;
	}

	@Override
	public int getSocketTimeout()
	{
		return socketTimeout;
	}

	@Override
	public void setSocketTimeout( int socketTimeout )
	{
		this.socketTimeout = socketTimeout;
	}

	@Override
	public int getOperationTimeout()
	{
		return operationTimeout;
	}

	@Override
	public void setOperationTimeout( int operationTimeout )
	{
		this.operationTimeout = operationTimeout;
	}

}
